#include "../../common/logger.hpp"
#include <gflags/gflags.h>

DEFINE_bool(run_mode, false, "程序运行模式 --false: 调试, --true: 发布");
DEFINE_string(log_file, "./log.txt", "发布模式下, 指定日志的输出文件");
DEFINE_int32(log_level, 0, "发布模式下, 指定日志的输出等级");

int main(int argc, char *argv[])
{
    google::ParseCommandLineFlags(&argc, &argv, true);

    init(FLAGS_run_mode, FLAGS_log_file, FLAGS_log_level);

    LOG_TRACE("你好 {}","世界1");
    LOG_DEBUG("你好 {}","世界2");
    LOG_INFO("你好 {}","世界3");
    LOG_WARN("你好 {}","世界4");
    LOG_ERROR("你好 {}","世界5");
    LOG_FATAL("你好 {}","世界6");
    


    return 0;
}